package com.gtw.modules.dao;

import com.gtw.modules.entity.TbGroupbuyUser;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbGroupbuyUserDao {

    int deleteByPrimaryKey(Integer id);

    int insert(TbGroupbuyUser record);

    int insertSelective(TbGroupbuyUser record);

    TbGroupbuyUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbGroupbuyUser record);

    int updateByPrimaryKey(TbGroupbuyUser record);

    List<TbGroupbuyUser> queryByUserId(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    List<TbGroupbuyUser> queryByGroupId(Integer groupid);

    List<TbGroupbuyUser> foundByUserid(Integer userid);

    List<TbGroupbuyUser> queryByLeader(Integer groupbuyid);

    List<TbGroupbuyUser> queryByuserid(Integer userid);

    List<TbGroupbuyUser> queryByAllLeader();

    List<TbGroupbuyUser> queryByTeam(Map<String, Object> map);

    TbGroupbuyUser foundByLeader(Map<String,Object> map);
}